Optimal. Leaf size=96 \[ \frac {2 (b+2 c x) \log (b+2 c x)}{(2 c d-b e) \sqrt {\frac {b^2}{c}+4 b x+4 c x^2}}-\frac {2 (b+2 c x) \log (d+e x)}{(2 c d-b e) \sqrt {\frac {b^2}{c}+4 b x+4 c x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 96, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {660, 36, 31}
\begin {gather*} \frac {2 (b+2 c x) \log (b+2 c x)}{\sqrt {\frac {b^2}{c}+4 b x+4 c x^2} (2 c d-b e)}-\frac {2 (b+2 c x) \log (d+e x)}{\sqrt {\frac {b^2}{c}+4 b x+4 c x^2} (2 c d-b e)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 36
Rule 660
Rubi steps
\begin {align*} \int \frac {1}{(d+e x) \sqrt {\frac {b^2}{4 c}+b x+c x^2}} \, dx &=\frac {\left (\frac {b}{2}+c x\right ) \int \frac {1}{\left (\frac {b}{2}+c x\right ) (d+e x)} \, dx}{\sqrt {\frac {b^2}{4 c}+b x+c x^2}}\\ &=\frac {\left (2 c \left (\frac {b}{2}+c x\right )\right ) \int \frac {1}{\frac {b}{2}+c x} \, dx}{(2 c d-b e) \sqrt {\frac {b^2}{4 c}+b x+c x^2}}-\frac {\left (2 e \left (\frac {b}{2}+c x\right )\right ) \int \frac {1}{d+e x} \, dx}{(2 c d-b e) \sqrt {\frac {b^2}{4 c}+b x+c x^2}}\\ &=\frac {2 (b+2 c x) \log (b+2 c x)}{(2 c d-b e) \sqrt {\frac {b^2}{c}+4 b x+4 c x^2}}-\frac {2 (b+2 c x) \log (d+e x)}{(2 c d-b e) \sqrt {\frac {b^2}{c}+4 b x+4 c x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 51, normalized size = 0.53 \begin {gather*} \frac {2 (b+2 c x) (\log (b+2 c x)-\log (d+e x))}{(2 c d-b e) \sqrt {\frac {(b+2 c x)^2}{c}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.75, size = 58, normalized size = 0.60
method | result | size |
default | \(-\frac {2 \left (2 c x +b \right ) \left (\ln \left (2 c x +b \right )-\ln \left (e x +d \right )\right )}{\sqrt {\frac {4 c^{2} x^{2}+4 b c x +b^{2}}{c}}\, \left (b e -2 c d \right )}\) | \(58\) |
risch | \(-\frac {2 \left (2 c x +b \right ) \ln \left (2 c x +b \right )}{\sqrt {\frac {\left (2 c x +b \right )^{2}}{c}}\, \left (b e -2 c d \right )}+\frac {2 \left (2 c x +b \right ) \ln \left (-e x -d \right )}{\sqrt {\frac {\left (2 c x +b \right )^{2}}{c}}\, \left (b e -2 c d \right )}\) | \(82\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.50, size = 288, normalized size = 3.00 \begin {gather*} \left [-\frac {2 \, \sqrt {c} \log \left (\frac {8 \, c^{3} d^{2} x + 4 \, b c^{2} d^{2} + {\left (8 \, c^{2} d x e + 4 \, c^{2} d^{2} - {\left (4 \, b c x + b^{2}\right )} e^{2}\right )} \sqrt {c} \sqrt {\frac {4 \, c^{2} x^{2} + 4 \, b c x + b^{2}}{c}} + {\left (16 \, c^{3} x^{3} + 16 \, b c^{2} x^{2} + 6 \, b^{2} c x + b^{3}\right )} e^{2} + 8 \, {\left (2 \, c^{3} d x^{2} + b c^{2} d x\right )} e}{4 \, c^{2} d x^{2} + 4 \, b c d x + b^{2} d + {\left (4 \, c^{2} x^{3} + 4 \, b c x^{2} + b^{2} x\right )} e}\right )}{2 \, c d - b e}, -\frac {4 \, \sqrt {-c} \arctan \left (-\frac {{\left (2 \, c d + {\left (4 \, c x + b\right )} e\right )} \sqrt {-c} \sqrt {\frac {4 \, c^{2} x^{2} + 4 \, b c x + b^{2}}{c}}}{4 \, c^{2} d x + 2 \, b c d - {\left (2 \, b c x + b^{2}\right )} e}\right )}{2 \, c d - b e}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} 2 \int \frac {1}{d \sqrt {\frac {b^{2}}{c} + 4 b x + 4 c x^{2}} + e x \sqrt {\frac {b^{2}}{c} + 4 b x + 4 c x^{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.44, size = 94, normalized size = 0.98 \begin {gather*} \frac {2 \, c^{\frac {5}{2}} \log \left ({\left | 2 \, c x + b \right |}\right )}{2 \, c^{2} d {\left | c \right |} \mathrm {sgn}\left (2 \, c x + b\right ) - b c {\left | c \right |} e \mathrm {sgn}\left (2 \, c x + b\right )} - \frac {2 \, c^{\frac {3}{2}} e \log \left ({\left | x e + d \right |}\right )}{2 \, c d {\left | c \right |} e \mathrm {sgn}\left (2 \, c x + b\right ) - b {\left | c \right |} e^{2} \mathrm {sgn}\left (2 \, c x + b\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {2}{\left (d+e\,x\right )\,\sqrt {4\,b\,x+4\,c\,x^2+\frac {b^2}{c}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________